Skip to main content

referral link

๐Ÿ“˜ Feature descriptionโ€‹

  • ๐Ÿ’ป Referral link ๐Ÿ›ซ 2023-11-15 ๐Ÿ“… 2023-12-17 โœ… 2023-12-02

๐Ÿ“– Scenarios:โ€‹

Given I am a new User that logged in without any referral link

When I go to profile, I have a referral link using my public UUID (i.e. 3ZfJXPcfZ3hXr1KeWXiToe27QpU2)

Then The new user is stored in a JSON file called referral_tree.json under the root element and any new user coming from this user will be stored under his public UUID

Example:

{
"root":[
"3ZfJXPcfZ3hXr1KeWXiToe27QpU2" -- user registered without referral id
". . ."
],
"3ZfJXPcfZ3hTr1KeWXiToe27QpU2":[
"fe3ca2a521e64948d", -- user referred by "3ZfJXPcfZ3hXr1KeWXiToe27QpU2"
". . ."
],
"fe3ca2a21e64948d":[
". . .",
". . .",
". . ."
]
}

Only admin user should have access to this referral tree for the moment so we keep the storage access restricted as possible (๐Ÿ” security first).